package com.group3.domain;

import com.group3.pojo.receive.KlassReceive;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel(value = "班级信息")
public class Klass {

    @ApiModelProperty(value = "班级名")
    private String classId;

    @ApiModelProperty(value = "班主任教师工号")
    private String teacherId;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "院系")
    private String departName;

    @ApiModelProperty(value = "专业")
    private String professionName;

    @ApiModelProperty(value = "是否结业")
    private int statue;

    public Klass(){

    }
    public Klass(KlassReceive klassReceive){
        this.classId = klassReceive.getClassId();
        this.teacherId = klassReceive.getTeacherId();
        this.grade = klassReceive.getGrade();
        this.departName = klassReceive.getDepartName();
        this.professionName = klassReceive.getProfessionName();
        this.statue = klassReceive.getStatue();
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId == null ? null : classId.trim();
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId == null ? null : teacherId.trim();
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade == null ? null : grade.trim();
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName == null ? null : departName.trim();
    }

    public String getProfessionName() {
        return professionName;
    }

    public void setProfessionName(String professionName) {
        this.professionName = professionName == null ? null : professionName.trim();
    }
}